import {System, UnityEngine} from 'csharp';
import {$ref, $unref, $generic, $promise, $typeof} from 'puerts';
import JsBehaviour, { GameObject } from './lib/JsBehave';

class Main extends JsBehaviour {
    constructor(gameObject:GameObject){
        super(gameObject);
    }
    Awake(){
        console.log("这是B JsAwake");
    }
    Start(){
        console.log("这是B JsStart");
        this.gameObject.transform.position = new UnityEngine.Vector3(1,2,5);
    }
    Update(delta:number){
        //console.log("更新操作",delta);
    }
}
export default function (gameObject:GameObject){
    new Main(gameObject);
};